<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/templates/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewUserTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewUserLabel_id}"/>
                    <h:outputText value="#{userController.selected.id}" title="#{bundle.ViewUserTitle_id}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_username}"/>
                    <h:outputText value="#{userController.selected.username}" title="#{bundle.ViewUserTitle_username}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_password}"/>
                    <h:outputText value="#{userController.selected.password}" title="#{bundle.ViewUserTitle_password}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_name}"/>
                    <h:outputText value="#{userController.selected.name}" title="#{bundle.ViewUserTitle_name}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_email}"/>
                    <h:outputText value="#{userController.selected.email}" title="#{bundle.ViewUserTitle_email}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_bank}"/>
                    <h:outputText value="#{userController.selected.bank}" title="#{bundle.ViewUserTitle_bank}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_bankNo}"/>
                    <h:outputText value="#{userController.selected.bankNo}" title="#{bundle.ViewUserTitle_bankNo}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_vatCode}"/>
                    <h:outputText value="#{userController.selected.vatCode}" title="#{bundle.ViewUserTitle_vatCode}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_street}"/>
                    <h:outputText value="#{userController.selected.street}" title="#{bundle.ViewUserTitle_street}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_city}"/>
                    <h:outputText value="#{userController.selected.city}" title="#{bundle.ViewUserTitle_city}"/>
                    <h:outputText value="#{bundle.ViewUserLabel_postCode}"/>
                    <h:outputText value="#{userController.selected.postCode}" title="#{bundle.ViewUserTitle_postCode}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{userController.destroyAndView}" value="#{bundle.ViewUserDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewUserEditLink}"/>
                <br />
                <h:commandLink action="#{userController.prepareCreate}" value="#{bundle.ViewUserCreateLink}" />
                <br />
                <h:commandLink action="#{userController.prepareList}" value="#{bundle.ViewUserShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewUserIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
